<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="decorator" content="default" />
<title>工程管理</title>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/project/opGuide/list?projectId=${opGuide.project.id}">操作指导书列表</a></li>
		<c:if test="${not empty opGuide and not empty opGuide.project and not empty opGuide.project.id and not empty opGuide.project.suoxie}">
			<li><a href="${ctx}/project/opGuide/form?projectId=${opGuide.project.id}&suoxie=${opGuide.project.suoxie}">操作指导书添加</a></li>
		</c:if>
	</ul>
	<form:form id="searchForm" modelAttribute="opGuide"
		action="${ctx}/project/opGuide/list" method="post" class="breadcrumb form-search">
		<input name="project.id" type="hidden" value="${opGuide.project.id}" />
		<label>规格：</label>
		<form:input path="gg" cssClass="input-medium"/>
		&nbsp;&nbsp;
		<label>透照方式：</label>
		<form:select path="tzfs" cssClass="input-medium">
			<form:option value="" label="请选择透照方式"/>
			<form:options items="${fns:getDictList('dict_tzfs')}" itemLabel="label" itemValue="value"/>
		</form:select>
		&nbsp;&nbsp;
		<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
	</form:form>
	<common:message content="${message}" />
	<table id="contentTable"
		class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				 <th>操作指导书编号</th>
				 <th>工艺规程及版本号</th>
				 <th>检件名称</th>
				 <th>检件编号</th>
				 <th>设备类别</th>
				 <th>透照方式</th>
				 <th>规格</th>
				 <th>材质</th>
				 <th>操作</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${list}" var="op">
				<tr>
					<td><a href="${ctx}/project/opGuide/form?id=${op.id}">${op.czzdsbh}</a></td>
					<td>${op.gygcjbbh}</td>
					<td><a href="${ctx}/project/opGuide/form?id=${op.id}">${op.jcmc}</a></td>
					<td>${op.jcbh}</td>
					<td>${op.sblb}</td>
					<td>${fns:getDictLabel(op.tzfs, 'dict_tzfs', '')}</td>
					<td>${op.gg}</td>
					<td>${op.cz}</td>
					<td>
						<a href="${ctx}/project/opGuide/form?id=${op.id}">修改</a>
						<a href="${ctx}/project/opGuide/form?id=${op.id}&notnew=yes&projectId=${op.project.id}&suoxie=${op.project.suoxie}">继续添加</a>
						<a href="${ctx}/project/opGuide/delete?id=${op.id}&project.id=${op.project.id}"
						onclick="return confirmx('确认要删除该作业说明书吗？', this.href)">删除</a>
					</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>

</body>
</html>